const env = process.env.NODE_ENV || 'development'

global.process.env.NODE_ENV = env

console.log(`runing at ${env}`)

const fetchData = () => {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve({ msg: 'success' })
    }, 1000)
  })
}
async function app() {
  const { msg } = await fetchData()
  console.log('请求结果：', msg)
}

console.log('async...')

app()
